package top.ahzy.seobench.model.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author ahzy
 * @since 2024-4-17 14:09:29
 */
@Data
@Accessors(chain = true)
@TableName("seo_config_data")
@ApiModel(value = "ConfigData对象", description = "配置数据表")
public class ConfigData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId("id")
    private String id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("信息详情")
    @TableField("detail")
    private String detail;


    @ApiModelProperty("创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 	// 页面写入数据库时格式化
    @JSONField(format="yyyy-MM-dd HH:mm:ss")	    // 数据库导出页面时json格式化
    @TableField("create_time")
    private Date createTime;

}
